package edu.nwpu.dao;

import edu.nwpu.pojo.Food;
import edu.nwpu.pojo.FoodType;
import java.util.List;

public interface FoodTypeMapper {

    /**
     * 查询所有的菜品类别
     *
     * @return java.util.List<edu.nwpu.pojo.FoodType>
     */
    List<FoodType> selectAllFoodTypes();

    @Deprecated
    int deleteByPrimaryKey(Long id);

    @Deprecated
    int deleteFoodTypeByName(String name);

    @Deprecated
    int insert(FoodType record);

    @Deprecated
    FoodType selectByPrimaryKey(Long id);

    @Deprecated
    FoodType getFoodTypeByName(String name);

    @Deprecated
    List<Food> getFoodsByTypeName(String name);

    @Deprecated
    List<Food> getFoodsById(Long id);

    @Deprecated
    int updateByPrimaryKey(FoodType record);

}